package gui;

/**
 * @author Ramy Refky 
 * */
public class NandComponentGraphics extends ComponentGraphics{

	private static final long serialVersionUID = 1L;
	
	/**
	 * Constructor initializes NAND Gate by initializing ComponentGraphics, and then painting the NandComponentLabel.
	 * @param MainGui, XLocation, YLocation, Width, Height , NumberOfInputs
	 * */
	public NandComponentGraphics(MainGui mg,int originalXLoc,int originalYLoc,int originalWidth,int originalHeight,int numOfInputs){
		super(mg,originalXLoc,originalYLoc,originalWidth,originalHeight,numOfInputs);
		
		this.remove(compLabel);
		compLabel=new NandComponentLabel(newXLoc,newYLoc,originalWidth,originalHeight);
		this.add(compLabel);
		setComponentZOrder(compLabel,0);
		repaint();
	}
}